/*
 * Lab4.h
 *
 *  Created on: 05.11.2013
 *      Author: ulgish
 */

#ifndef LAB4_H_
#define LAB4_H_

#include <lab4/Reader.h>
#include <lab4/Writer.h>
#include <lab4/InformationFond.h>
#include <SyncWriter.h>
class Lab4 {
	DT::Writer** writers;
	DT::Reader** readers;
	DT::InformationFond* iFond;
	int countOfReader;
	int countOfWriter;
	int delayReaderInSecond;
	int delayWriterInSecond;
public:
	Lab4(int countOfReader, int delayReaderInSecond, int countOfWriter, int delayWriterInSecond);
	void go(int timeOfModelingInSecond);
	virtual ~Lab4();
};

#endif /* LAB4_H_ */
